from  load_filter_config import load_filter_config
from pathlib import Path
def get_solution(image_path,image_config_list,image_list):
    image_path_object = Path(image_path)
    for index,value in enumerate(image_list):
        validate_image_object = Path(value)
        if image_path_object == validate_image_object:
            temp_dist = {
                'method':image_config_list[index]['solve_method'],
                'value':image_config_list[index]['image_explain']
            }
            return temp_dist.copy()

    return None


if __name__ == "__main__":
    image_path = "E:\\AI\\HUAWEI_SWITCH\\chm\\chm_split\\public_sys-resources\\notice_3.0-zh-cn.png"
    load_filter_config()
    get_solution()